﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_show : System.Web.UI.Page
{
    public override string StyleSheetTheme
    {
        get
        {
            //return base.StyleSheetTheme;
            return ConfigGlobal.GetGlobal().Theme;
        }
        set
        {
            base.StyleSheetTheme = value;
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ConfigGlobal.CheckLog();
        ConfigTable cTab = ConfigTable.GetThisPageConfigTable();        
        string pkValue = string.Empty;        
        pkValue = Request.QueryString["id"];        

        cTab.SetUpShowPanel(this.EditPanel, pkValue);
        if (!Page.IsPostBack)
        {
            if (Request.UrlReferrer != null)
            {
                ViewState["UrlReferrer"] = Request.UrlReferrer.ToString();
            }
        }
    }
    protected void BackButton_Click(object sender, EventArgs e)
    {
        Response.Redirect(ViewState["UrlReferrer"].ToString());
    }
}
